<?php
/*------------------------------------------------------------------------
# com_k2store - K2 Store v 2.6
# ------------------------------------------------------------------------
# author    Ramesh Elamathi - Weblogicx India http://www.weblogicxindia.com
# copyright Copyright (C) 2012 Weblogicxindia.com. All Rights Reserved.
# @license - http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
# Websites: http://k2store.org
# Technical Support:  Forum - http://k2store.org/forum/index.html
-------------------------------------------------------------------------*/



// no direct access
defined( '_JEXEC' ) or die( 'Restricted access' );
$link = JRoute::_('index.php?option=com_k2store&view=mycart');
$items = @$this->cartobj->items;
$subtotal = @$this->cartobj->subtotal;

?>
<div class="minicart row-fluid">
	<div class="span12">
	<?php 
	$i = 0; $subtotal = 0; $qtytotal = 0; 
	if($items) {
		foreach ($items as $item) : 
			$subtotal = $subtotal + $item->subtotal;
			$qtytotal = $qtytotal + $item->product_qty;
			$i++;
		endforeach;
	}	
	?>
	  <p><?php echo count($items).JText::_('K2STORE_ITEMS_IN_CART'); ?>	</p>
	
	
		<div class="miniCartButton">
			<a class="btn btn-primary" href="<?php echo $link; ?>"><?php echo JText::_('K2STORE_VIEW_CART'); ?></a>
		</div>
	</div>	
</div>